package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EcdStampingPlatingMapper;
import com.ruoyi.system.domain.EcdStampingPlating;
import com.ruoyi.system.service.IEcdStampingPlatingService;

/**
 * 冲压电镀件Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-09
 */
@Service
public class EcdStampingPlatingServiceImpl implements IEcdStampingPlatingService 
{
    @Autowired
    private EcdStampingPlatingMapper ecdStampingPlatingMapper;

    /**
     * 查询冲压电镀件
     * 
     * @param id 冲压电镀件主键
     * @return 冲压电镀件
     */
    @Override
    public EcdStampingPlating selectEcdStampingPlatingById(Integer id)
    {
        return ecdStampingPlatingMapper.selectEcdStampingPlatingById(id);
    }

    /**
     * 查询冲压电镀件列表
     * 
     * @param ecdStampingPlating 冲压电镀件
     * @return 冲压电镀件
     */
    @Override
    public List<EcdStampingPlating> selectEcdStampingPlatingList(EcdStampingPlating ecdStampingPlating)
    {
        return ecdStampingPlatingMapper.selectEcdStampingPlatingList(ecdStampingPlating);
    }

    /**
     * 新增冲压电镀件
     * 
     * @param ecdStampingPlating 冲压电镀件
     * @return 结果
     */
    @Override
    public int insertEcdStampingPlating(EcdStampingPlating ecdStampingPlating)
    {
        return ecdStampingPlatingMapper.insertEcdStampingPlating(ecdStampingPlating);
    }

    /**
     * 修改冲压电镀件
     * 
     * @param ecdStampingPlating 冲压电镀件
     * @return 结果
     */
    @Override
    public int updateEcdStampingPlating(EcdStampingPlating ecdStampingPlating)
    {
        return ecdStampingPlatingMapper.updateEcdStampingPlating(ecdStampingPlating);
    }

    /**
     * 批量删除冲压电镀件
     * 
     * @param ids 需要删除的冲压电镀件主键
     * @return 结果
     */
    @Override
    public int deleteEcdStampingPlatingByIds(Integer[] ids)
    {
        return ecdStampingPlatingMapper.deleteEcdStampingPlatingByIds(ids);
    }

    /**
     * 删除冲压电镀件信息
     * 
     * @param id 冲压电镀件主键
     * @return 结果
     */
    @Override
    public int deleteEcdStampingPlatingById(Integer id)
    {
        return ecdStampingPlatingMapper.deleteEcdStampingPlatingById(id);
    }
}
